package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class BaseIndexConf implements Serializable {

	private static final long serialVersionUID = 1L;

	private String pk;

	private String pkIndex;

	private String naIndex;

	private String sqlWhere;

	private String sqlVal;

	private String sqlAll;

	private String grpDt;

	public String getPk() {
	    return pk;
	}

	public void setPk(String pk) {
	    this.pk = pk;
	}

	public String getPkIndex() {
	    return pkIndex;
	}

	public void setPkIndex(String pkIndex) {
	    this.pkIndex = pkIndex;
	}

	public String getNaIndex() {
	    return naIndex;
	}

	public void setNaIndex(String naIndex) {
	    this.naIndex = naIndex;
	}

	public String getSqlWhere() {
	    return sqlWhere;
	}

	public void setSqlWhere(String sqlWhere) {
	    this.sqlWhere = sqlWhere;
	}

	public String getSqlVal() {
	    return sqlVal;
	}

	public void setSqlVal(String sqlVal) {
	    this.sqlVal = sqlVal;
	}

	public String getSqlAll() {
	    return sqlAll;
	}

	public void setSqlAll(String sqlAll) {
	    this.sqlAll = sqlAll;
	}

	public String getGrpDt() {
	    return grpDt;
	}

	public void setGrpDt(String grpDt) {
	    this.grpDt = grpDt;
	}

	@Override
	public boolean equals(Object that) {
	    if (this == that) {
	        return true;
	    }
	    if (that == null) {
	        return false;
	    }
	    if (getClass() != that.getClass()) {
	        return false;
	    }
	    BaseIndexConf other = (BaseIndexConf) that;
	    return (this.getPk() == null ? other.getPk() == null : this.getPk().equals(other.getPk())) && (this.getPkIndex() == null ? other.getPkIndex() == null : this.getPkIndex().equals(other.getPkIndex())) && (this.getNaIndex() == null ? other.getNaIndex() == null : this.getNaIndex().equals(other.getNaIndex())) && (this.getSqlWhere() == null ? other.getSqlWhere() == null : this.getSqlWhere().equals(other.getSqlWhere())) && (this.getSqlVal() == null ? other.getSqlVal() == null : this.getSqlVal().equals(other.getSqlVal())) && (this.getSqlAll() == null ? other.getSqlAll() == null : this.getSqlAll().equals(other.getSqlAll())) && (this.getGrpDt() == null ? other.getGrpDt() == null : this.getGrpDt().equals(other.getGrpDt()));
	}

	@Override
	public int hashCode() {
	    final int prime = 31;
	    int result = 1;
	    result = prime * result + ((getPk() == null) ? 0 : getPk().hashCode());
	    result = prime * result + ((getPkIndex() == null) ? 0 : getPkIndex().hashCode());
	    result = prime * result + ((getNaIndex() == null) ? 0 : getNaIndex().hashCode());
	    result = prime * result + ((getSqlWhere() == null) ? 0 : getSqlWhere().hashCode());
	    result = prime * result + ((getSqlVal() == null) ? 0 : getSqlVal().hashCode());
	    result = prime * result + ((getSqlAll() == null) ? 0 : getSqlAll().hashCode());
	    result = prime * result + ((getGrpDt() == null) ? 0 : getGrpDt().hashCode());
	    return result;
	}

	@Override
	public String toString() {
	    StringBuilder sb = new StringBuilder();
	    sb.append(getClass().getSimpleName());
	    sb.append(" [");
	    sb.append("Hash = ").append(hashCode());
	    sb.append(", serialVersionUID=").append(serialVersionUID);
	    sb.append(", pk=").append(pk);
	    sb.append(", pkIndex=").append(pkIndex);
	    sb.append(", naIndex=").append(naIndex);
	    sb.append(", sqlWhere=").append(sqlWhere);
	    sb.append(", sqlVal=").append(sqlVal);
	    sb.append(", sqlAll=").append(sqlAll);
	    sb.append(", grpDt=").append(grpDt);
	    sb.append("]");
	    return sb.toString();
	}


}